<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <div class="form-group">
        <label for="pro_year" class="control-label col-xs-12 col-sm-2">年度:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="pro_year" name="row[pro_year]" value=""/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">年级:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[pro_grade]', $college_grade_types, null, ['class'=>'form-control selectpicker'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">大学院校:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[college_id]', $college_types, null, ['class'=>'form-control selectpicker',
            'data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group">
        <label for="name" class="control-label col-xs-12 col-sm-2">专业名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="name" name="row[name]" value=""
                   data-rule="required"/>
        </div>
    </div>
    <div class="form-group">
        <label for="pro_code" class="control-label col-xs-12 col-sm-2">专业编码:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="pro_code" name="row[pro_code]" value=""
                   data-rule="required"/>
        </div>
    </div>
    <div class="form-group">
        <label for="read_price" class="control-label col-xs-12 col-sm-2">报读价格:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="number" class="form-control" id="read_price" name="row[read_price]" value=""/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">专业层次:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[pro_level]', $ml_types, null, ['class'=>'form-control selectpicker'])}
        </div>
    </div>
    <div class="form-group">
        <label for="pro_category" class="control-label col-xs-12 col-sm-2">专业大类:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="pro_category" name="row[pro_category]" value=""/>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">授课方式:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[lessons_way]', $lw_types, null, ['class'=>'form-control selectpicker'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">是否教育类:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_edu_class]', ['normal'=>__('是'), 'hidden'=>__('否')])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">考试地区:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[exam_area_id]', $exam_area, null, ['class'=>'form-control selectpicker'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">考试科目:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[exam_lessons]', $el_types, null, ['class'=>'form-control selectpicker'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="remark">备注:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="remark" name="row[remark]" value=""/>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">是否可用:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')])}
        </div>
    </div>
    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
